package com.lzh.tiktok.user.controller;

import com.lzh.tiktok.user.vo.FeedResponseVo;
import com.lzh.tiktok.user.vo.VideoVo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * @author lizhihang
 * @create 2023-01-17 22:16
 */
@RestController
@RequestMapping("/douyin/feed")
public class FeedController {

    //todo 短视频feed流
    @GetMapping("")
    public FeedResponseVo feed(@RequestParam(value = "latest_time", required = false) Long latestTime,
                               @RequestParam(value = "token", required = false) String token) {
        List<VideoVo> videoVos = new ArrayList<>();
        return FeedResponseVo.suceess(System.currentTimeMillis(), null);
    }
}
